﻿@using User.Global.Constvalues.Web.Navigation
@model System.Web.Mvc.HandleErrorInfo

@{
    ViewBag.Title = "Error";
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    @Styles.Render("~/styles/bootAndFont")
    @Styles.Render("~/Content/myCss")
    <title>@Html.Encode(ViewData["Title"])</title>
</head>
<body>

    <div id="wrap">
        <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="@Url.Action("Index", "Home")">@PageTitles.Brand</a>
                </div>
            </div>
        </nav>
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="well">
                        <h1>Ein Fehler ist aufgetreten.</h1>
                        <p>@Html.Encode(ViewData["Description"])</p>

                        <p>@Model.Exception.Message</p>

                        @{
                            try
                            {
                                //Loggen der Informationen, wenn es sich um eine CurrentController Exception handelt
                                //Logg.Debugging.WriteLog("CurrentControllerName: " + Model.ControllerName);
                                //EFDebugging.Debugging.WriteLog("ActionName: " + Model.ActionName);
                                //EFDebugging.Debugging.WriteLog("WebApplicationError:", Model.Exception);
                            }
                            catch (Exception exception)
                            {

                            }
                        }
                    </div>
                </div>

            </div>
            <hr />

            <div class="row">
                <div class="col-lg-12">
                    @Html.ActionLink("Zurück zur Startseite", EActionHome.Index.ToString(), EController.Home.ToString(), null, new { @class = "btn btn-default" })
                </div>
            </div>
        </div>
    </div>
    
 


</body>
</html>